package com.bwie.gateway.config;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;


@Configuration
@ConfigurationProperties(prefix = "ignore")
@Data
@Log4j2
public class IgnoreWhitesConfig {
    private List<String> whites= new ArrayList<>();
    public void setWhites(List<String> whites){
        log.info("加载系统配置的白名单请求，白名单请求有：{}", JSONObject.toJSONString(whites));
        this.whites=whites;
    }
}
